package e_stream;
// ==========================================
// InputStreamEx2
// make : pwg
// date : 2001
// note : 문자열 한줄을  입력받아 화면에 출력하기
// ==========================================

import java.io.*;

public class  KeyboardStreamEx2
{

	public static void main(String[] args) 
	{

		InputStreamReader reader;
		BufferedReader buffer;
		String str=null;

		
		try
		{
			while(true)
			{
				reader = new InputStreamReader(System.in);
				buffer = new BufferedReader(reader);
				str=buffer.readLine();
				
				if(str.equals("end")) break;

				System.out.println(str); 
			}
		}
		catch (Exception e)
		{
		}	
	}
}
